/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * HomeDialog.java
 *
 * Created on Apr 7, 2012, 11:18:28 AM
 */
package Form;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Admin
 */
public class HomeDialog extends javax.swing.JFrame {

    /** Creates new form HomeDialog */
    public HomeDialog() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDialog1 = new javax.swing.JDialog();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        homePanel = new javax.swing.JPanel();
        infoPanel = new javax.swing.JPanel();
        scrollMenu = new javax.swing.JScrollPane();
        loginDialog1 = new Form.LoginDialog();
        criminalDialog1 = new Form.CriminalDialog();
        complaintDialog1 = new Form.ComplaintDialog();
        userAccountDialog1 = new Form.UserAccountDialog();
        postmortemDialog1 = new Form.PostmortemDialog();
        generatedReportDialog1 = new Form.GeneratedReportDialog();
        prisonInfoDialog1 = new Form.PrisonInfoDialog();
        caseRecordDialog1 = new Form.CaseRecordDialog();
        jPanel1 = new javax.swing.JPanel();
        btncomplaint = new javax.swing.JLabel();
        btnreport = new javax.swing.JLabel();
        btncase = new javax.swing.JLabel();
        btnprison = new javax.swing.JLabel();
        btnuser = new javax.swing.JLabel();
        btnpostmortem = new javax.swing.JLabel();
        btncriminal = new javax.swing.JLabel();
        bgmenu = new javax.swing.JLabel();
        btnhelp = new javax.swing.JLabel();
        btnlogin = new javax.swing.JLabel();
        btnsetting = new javax.swing.JLabel();
        clean = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        jDialog1.getContentPane().setLayout(null);

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/signin.png"))); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel3)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel3)
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jDialog1.getContentPane().add(jPanel4);
        jPanel4.setBounds(0, 0, 0, 0);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(255, 255, 255));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        homePanel.setBackground(new java.awt.Color(255, 255, 255));
        homePanel.setLayout(null);

        infoPanel.setLayout(null);

        scrollMenu.setViewportView(loginDialog1);
        loginDialog1.setVisible(true);

        infoPanel.add(scrollMenu);
        scrollMenu.setBounds(0, 0, 710, 460);
        infoPanel.add(criminalDialog1);
        criminalDialog1.setBounds(0, 0, 710, 460);
        criminalDialog1.setVisible(false);
        infoPanel.add(complaintDialog1);
        complaintDialog1.setBounds(0, 0, 710, 450);
        complaintDialog1.setVisible(false);
        infoPanel.add(userAccountDialog1);
        userAccountDialog1.setBounds(0, 0, 710, 450);
        userAccountDialog1.setVisible(false);
        infoPanel.add(postmortemDialog1);
        postmortemDialog1.setBounds(0, 0, 710, 460);
        postmortemDialog1.setVisible(false);
        infoPanel.add(generatedReportDialog1);
        generatedReportDialog1.setBounds(0, 0, 710, 460);
        generatedReportDialog1.setVisible(false);
        infoPanel.add(prisonInfoDialog1);
        prisonInfoDialog1.setBounds(0, 0, 710, 460);
        prisonInfoDialog1.setVisible(false);
        infoPanel.add(caseRecordDialog1);
        caseRecordDialog1.setBounds(0, 0, 710, 460);
        caseRecordDialog1.setVisible(false);

        homePanel.add(infoPanel);
        infoPanel.setBounds(180, 110, 710, 460);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setLayout(null);

        btncomplaint.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btncomplaint.setForeground(new java.awt.Color(255, 255, 255));
        btncomplaint.setText("Complaint Register");
        btncomplaint.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btncomplaint.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btncomplaintMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btncomplaintMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btncomplaintMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btncomplaintMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btncomplaintMouseReleased(evt);
            }
        });
        jPanel1.add(btncomplaint);
        btncomplaint.setBounds(0, 20, 170, 40);

        btnreport.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnreport.setForeground(new java.awt.Color(255, 255, 255));
        btnreport.setText("Generated Report");
        btnreport.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnreport.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnreportMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnreportMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnreportMouseExited(evt);
            }
        });
        jPanel1.add(btnreport);
        btnreport.setBounds(0, 340, 170, 40);

        btncase.setFont(new java.awt.Font("Tahoma", 1, 12));
        btncase.setForeground(new java.awt.Color(255, 255, 255));
        btncase.setText("Case Record");
        btncase.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btncase.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btncaseMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btncaseMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btncaseMouseExited(evt);
            }
        });
        jPanel1.add(btncase);
        btncase.setBounds(0, 120, 170, 40);

        btnprison.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnprison.setForeground(new java.awt.Color(255, 255, 255));
        btnprison.setText("Prison Infomation");
        btnprison.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnprison.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnprisonMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnprisonMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnprisonMouseExited(evt);
            }
        });
        jPanel1.add(btnprison);
        btnprison.setBounds(0, 170, 170, 40);

        btnuser.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnuser.setForeground(new java.awt.Color(255, 255, 255));
        btnuser.setText("User Infomation");
        btnuser.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnuser.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnuserMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnuserMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnuserMouseExited(evt);
            }
        });
        jPanel1.add(btnuser);
        btnuser.setBounds(0, 280, 170, 40);

        btnpostmortem.setFont(new java.awt.Font("Tahoma", 1, 12));
        btnpostmortem.setForeground(new java.awt.Color(255, 255, 255));
        btnpostmortem.setText("Postmortem");
        btnpostmortem.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnpostmortem.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnpostmortemMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnpostmortemMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnpostmortemMouseExited(evt);
            }
        });
        jPanel1.add(btnpostmortem);
        btnpostmortem.setBounds(0, 230, 170, 40);

        btncriminal.setFont(new java.awt.Font("Tahoma", 1, 12));
        btncriminal.setForeground(new java.awt.Color(255, 255, 255));
        btncriminal.setText("Criminal Register");
        btncriminal.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btncriminal.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btncriminalMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btncriminalMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btncriminalMouseExited(evt);
            }
        });
        jPanel1.add(btncriminal);
        btncriminal.setBounds(0, 70, 170, 40);

        bgmenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/bg_menu.png"))); // NOI18N
        jPanel1.add(bgmenu);
        bgmenu.setBounds(-10, -110, 180, 590);

        homePanel.add(jPanel1);
        jPanel1.setBounds(10, 110, 170, 460);

        btnhelp.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnhelp.setForeground(new java.awt.Color(255, 255, 255));
        btnhelp.setText("Help?");
        homePanel.add(btnhelp);
        btnhelp.setBounds(850, 10, 40, 17);

        btnlogin.setFont(new java.awt.Font("Tahoma", 1, 14));
        btnlogin.setForeground(new java.awt.Color(255, 255, 255));
        btnlogin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        btnlogin.setText("Login");
        btnlogin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btnloginMouseClicked(evt);
            }
        });
        homePanel.add(btnlogin);
        btnlogin.setBounds(810, 60, 50, 20);

        btnsetting.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnsetting.setForeground(new java.awt.Color(255, 255, 255));
        btnsetting.setText("Setting");
        homePanel.add(btnsetting);
        btnsetting.setBounds(770, 10, 50, 17);

        clean.setFont(new java.awt.Font("Tahoma", 0, 14));
        clean.setForeground(new java.awt.Color(255, 255, 255));
        clean.setText("|");
        homePanel.add(clean);
        clean.setBounds(830, 10, 10, 17);

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/bg_option2_2.png"))); // NOI18N
        homePanel.add(jLabel7);
        jLabel7.setBounds(174, -1, 740, 590);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/bg_NEW.png"))); // NOI18N
        homePanel.add(jLabel1);
        jLabel1.setBounds(0, 0, 910, 590);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(homePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 910, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(homePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 590, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void btncriminalMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncriminalMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-crime.png")));
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(criminalDialog1);
    criminalDialog1.setVisible(true);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);

}//GEN-LAST:event_btncriminalMouseClicked

private void btncomplaintMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncomplaintMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-complaint.png")));
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncomplaintMouseEntered

private void btncomplaintMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncomplaintMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-complaint.png")));
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncomplaintMouseExited

private void btncomplaintMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncomplaintMouseClicked
// TODO add your handling code here:
    //Process swing
    
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-complaint.png")));
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(complaintDialog1);
    //scrollMenu.setVisible(false);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(true);
    
}//GEN-LAST:event_btncomplaintMouseClicked

private void btncomplaintMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncomplaintMousePressed
// TODO add your handling code here:
}//GEN-LAST:event_btncomplaintMousePressed

private void btncomplaintMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncomplaintMouseReleased
// TODO add your handling code here:
    
}//GEN-LAST:event_btncomplaintMouseReleased

private void btncriminalMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncriminalMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-crime.png")));
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncriminalMouseEntered

private void btncriminalMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncriminalMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-crime.png")));
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncriminalMouseExited

private void btncaseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncaseMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-case.png")));
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(caseRecordDialog1);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(true);
    complaintDialog1.setVisible(false);
    
}//GEN-LAST:event_btncaseMouseClicked

private void btncaseMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncaseMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-case.png")));
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncaseMouseEntered

private void btncaseMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btncaseMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-case.png")));
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btncaseMouseExited

private void btnprisonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnprisonMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-prison.png")));
    btnreport.setIcon(null);
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(prisonInfoDialog1);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(true);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);
    
}//GEN-LAST:event_btnprisonMouseClicked

private void btnprisonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnprisonMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-prison.png")));
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btnprisonMouseEntered

private void btnprisonMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnprisonMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-prison.png")));
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btnprisonMouseExited

private void btnpostmortemMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnpostmortemMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-postmortem.png")));
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(postmortemDialog1);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(true);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);
    
}//GEN-LAST:event_btnpostmortemMouseClicked

private void btnpostmortemMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnpostmortemMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-postmortem.png")));
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btnpostmortemMouseEntered

private void btnpostmortemMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnpostmortemMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-postmortem.png")));
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(null);
}//GEN-LAST:event_btnpostmortemMouseExited

private void btnuserMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnuserMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-user.png")));
    
    //Process show panel
    scrollMenu.setViewportView(userAccountDialog1);
        criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(true);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);
    
}//GEN-LAST:event_btnuserMouseClicked

private void btnuserMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnuserMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-user.png")));
}//GEN-LAST:event_btnuserMouseEntered

private void btnuserMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnuserMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(null);
    btnuser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-user.png")));
}//GEN-LAST:event_btnuserMouseExited

private void btnreportMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnreportMouseClicked
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-report.png")));
    btnuser.setIcon(null);
    
    //Process show panel
    scrollMenu.setViewportView(generatedReportDialog1);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(true);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);
    
}//GEN-LAST:event_btnreportMouseClicked

private void btnreportMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnreportMouseEntered
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-report.png")));
    btnuser.setIcon(null);
}//GEN-LAST:event_btnreportMouseEntered

private void btnreportMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnreportMouseExited
// TODO add your handling code here:
    btncriminal.setIcon(null);
    btncase.setIcon(null);
    btncomplaint.setIcon(null);
    btnpostmortem.setIcon(null);
    btnprison.setIcon(null);
    btnreport.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Form/Image/label-icon-report.png")));
    btnuser.setIcon(null);
}//GEN-LAST:event_btnreportMouseExited

private void btnloginMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnloginMouseClicked
    
    
    scrollMenu.setViewportView(loginDialog1);
    criminalDialog1.setVisible(false);
    generatedReportDialog1.setVisible(false);
    userAccountDialog1.setVisible(false);
    postmortemDialog1.setVisible(false);
    prisonInfoDialog1.setVisible(false);
    caseRecordDialog1.setVisible(false);
    complaintDialog1.setVisible(false);
    loginDialog1.setVisible(true);
    
}//GEN-LAST:event_btnloginMouseClicked

private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
    // TODO add your handling code here:

}//GEN-LAST:event_formWindowOpened

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        try {
            /* Set the Nimbus look and feel */
            //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
            /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
             * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
             */
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            //</editor-fold>
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(HomeDialog.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(HomeDialog.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(HomeDialog.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(HomeDialog.class.getName()).log(Level.SEVERE, null, ex);
        }

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new HomeDialog().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel bgmenu;
    private javax.swing.JLabel btncase;
    private javax.swing.JLabel btncomplaint;
    private javax.swing.JLabel btncriminal;
    private javax.swing.JLabel btnhelp;
    private javax.swing.JLabel btnlogin;
    private javax.swing.JLabel btnpostmortem;
    private javax.swing.JLabel btnprison;
    private javax.swing.JLabel btnreport;
    private javax.swing.JLabel btnsetting;
    private javax.swing.JLabel btnuser;
    private Form.CaseRecordDialog caseRecordDialog1;
    private javax.swing.JLabel clean;
    private Form.ComplaintDialog complaintDialog1;
    private Form.CriminalDialog criminalDialog1;
    private Form.GeneratedReportDialog generatedReportDialog1;
    private javax.swing.JPanel homePanel;
    private javax.swing.JPanel infoPanel;
    private javax.swing.JDialog jDialog1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private Form.LoginDialog loginDialog1;
    private Form.PostmortemDialog postmortemDialog1;
    private Form.PrisonInfoDialog prisonInfoDialog1;
    private javax.swing.JScrollPane scrollMenu;
    private Form.UserAccountDialog userAccountDialog1;
    // End of variables declaration//GEN-END:variables
}
